export default {
  setAge (state) {
    let timer = null
    let defaultAge
    timer = setInterval(() => {
      defaultAge = state.state.age
      if (defaultAge >= 100) {
        clearInterval(timer)
        return
      }
      state.commit('changeAgeAsync', 1)
    }, 100)
  }
}
